<?php
include('../incsession.php');
mysql_select_db($DB_dbname, $orcp_con);
mysql_query("SET NAMES 'utf8'", $orcp_con);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>sample page</title>
<link rel="stylesheet" href="style.css" type="text/css" media="screen">
</head>

<body onLoad="TimeCountDown()">
<div id="wrapper">
	<div id="header">
		<div id="logo"></div>
		<div id="menu">
        <?php
			include("menu.php");
		?>
       
		</div>
	</div>
	<div class="clearer"></div>
	<div class="edge-top"></div>

	<div id="main">

		<div id="title">參考答案<font size=4><br>你的答案以<font color="#736F6E">灰色</font>顯示<br><font color="#1569C7">參考答案</font>以<font color="#1569C7">藍色</font>顯示</font></div>
<hr/><br><br>

<!-- 內文開始 !-->
<?php
$query = "SELECT * FROM open_question WHERE topicid=".$_SESSION['topic']." AND level=".$_SESSION['level'];
$result = mysql_query($query, $orcp_con);


$i = 1;

while($row = mysql_fetch_array($result)){
	$string = 'your_answer'.$i;
	$text = $_POST[$string];

	echo $i;	
	echo ". ".$row['question']."<br>";
	echo "<font color='#736F6E'>";
	echo $text;
	echo "</font><br>";
	echo "<font color='#1569C7'>".$row['answer']."</font><br>";
	$i++;
	echo "<br><br>";
}

?>

<form method = POST action="drag_and_drop.php" >
<div class="btn_right"><input type="submit" name = "next" value = "下一步"></div>
</form>
<!-- 內文結束 !-->

	</div>
    <div class="edge-bottom"></div>
    <div id="footer"><?php  include("footer.php"); ?></div>
</div>





</body>
</html>